import request from '@/utils/request'

// 查询员工记录列表
export function listOperateRecord(query) {
  return request({
    url: '/substation/operateRecord/list',
    method: 'get',
    params: query
  })
}

// 查询员工记录详细
export function getOperateRecord(id) {
  return request({
    url: '/substation/operateRecord/' + id,
    method: 'get'
  })
}

// 新增员工记录
export function addOperateRecord(data) {
  return request({
    url: '/substation/operateRecord',
    method: 'post',
    data: data
  })
}

// 修改员工记录
export function updateOperateRecord(data) {
  return request({
    url: '/substation/operateRecord',
    method: 'put',
    data: data
  })
}

// 删除员工记录
export function delOperateRecord(id) {
  return request({
    url: '/substation/operateRecord/' + id,
    method: 'delete'
  })
}
